package org.example.service.impl;

import org.example.dao.GoodsMapper;
import org.example.dto.Goods;
import org.example.rvo.ResultVO;
import org.example.service.GoodsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class GoodsServiceImpl implements GoodsService {

    @Resource
    private GoodsMapper goodsMapper;
    @Override
    public ResultVO queryGoods(Integer id) throws Exception {
        return ResultVO.success("200","成功",goodsMapper.queryGoods(id));
    }
}
